<p>
  <b>Catgory Infomation:</b>
  <%=h @item.category.category_name %>||<%=h @item.subcategory.subcategory_name %>
</p>
<p>
  <b>Item name:</b>
  <%=h @item.item_name %>
</p>

<p>
  <b>Brand name:</b>
  <%=h @item.brand.brand_name %>
</p>

<p>
  <b>Item price:</b>
  <%=h @item.item_price %>
</p>

<p>
  <b>Item detail:</b>
  <%=h @item.item_detail %>
</p>

<p>
  <b>Item quantity:</b>
  <%=h @item.item_quantity %>
</p>

<p>
  <b>Item boughtdate:</b>
  <%=h @item.item_boughtdate %>
</p>

<p>
  <b>Item expiredate:</b>
  <%=h @item.item_expiredate %>
</p>

<p>
  <b> How Many Time Left</b>
  <%=h distance_of_time_in_words(Time.now, @item.item_expiredate, true)%>
</p>

<%= link_to 'Edit', edit_item_path(@item) %> |
<%= link_to 'Back', items_path %>
